package com.ba.base.model.vo

data class TokenUserEntity(
    /*token*/
    val access_token: String? = null,
    val refresh_token: String? = null,
    /*token类型*/
    val token_type: String? = null,
    val roleName: String? = null,
    val expires_in: Long? = null,

    val user: UserEntity? = null
)

/*用户实体*/
data class UserEntity(
    /*身份证号码*/
    val gmsfhm: String? = null,
    var access_token: String? = null,
    var refreshToken: String? = null,
    /*是否实名，T代表实名*/
    var isCertified: String? = null,
    /*手机号*/
    var mobile: String? = null,
    /*密码*/
    var password: String? = null,
    /*真实姓名*/
    val name: String? = null,
    /*用户头像*/
    var picUrl: String? = null,
    /*我的待办数量等统计*/
    val roleIds: List<Int>? = null,
    //permissions
    var permissions: List<Int>? = null,
    /*用户Id*/
    var userId: String? = null,
    /*deptId*/
    val deptId: Int? = null,
    /*用户名*/
    val username: String? = null,
    /*昵称*/
    var nickName: String? = null,
    /*工作单位*/
    var workUnits: String? = null,
    /*idCard*/
    var idCard: String? = null,
    /*用户名*/
    var realName: String? = null,
    var jobNo: String? = null,
    var status: Int? = null,
    var sex: Boolean? = null,
    var accountNonExpired: Boolean? = null,
    var accountNonLocked: Boolean? = null,
    var userType: Int? = null,
    val authorities: List<Authority>?=null,
    var userDO: UserDO?= null,
    var roleName: String? = null
)
data class Authority(
    val authority: String
)
